#if !defined(AFX_TERMSOCKET_H__42C5C9C7_3102_11D2_9A30_00C04FB78B23__INCLUDED_)
#define AFX_TERMSOCKET_H__42C5C9C7_3102_11D2_9A30_00C04FB78B23__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// ClientSocket.h : header file
//

#include <afxsock.h>

class CBtermView;

class CTermSocket : public CAsyncSocket
{
	DECLARE_DYNAMIC(CTermSocket);
// Operations
public:
	CTermSocket(CBtermView * pView);
	virtual ~CTermSocket();
	
	CBtermView * cView;
// Implementation
protected:
	virtual void OnConnect(int nErrorCode);
	virtual void OnSend(int nErrorCode);
	virtual void OnReceive(int nErrorCode);
	virtual void OnClose(int nErrorCode);
	virtual void OnOutOfBandData(int nErrorCode);
private:
	bool isSSH;
	bool isFirstTime;
};
#endif // __TERMSOCK_H__
